<!doctype html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>首页</title>
    <link href="css/reset.css" rel="stylesheet" type="text/css"/>
    <link href="css/style.css" rel="stylesheet" type="text/css"/>
    <link href="css/swiper-3.2.7.min.css" rel="stylesheet" type="text/css"/>
    <!-- Animate.css -->
    <link rel="stylesheet" href="css/animate.css">
    <!-- Slit Slider css -->
    <link rel="stylesheet" href="css/slit-slider.css">
    <script src="js/modernizr-2.6.2.min.js"></script>
</head>
<body id="body">
<!--head-start-->
<div class="navBox">
    <div class="w-1200 clearfix">
        <div class="logo fl"><img src="img/head_logo.png" alt=""/></div>
        <div class="right fr clearfix">
            <ul class="nav fl">
                <li class="act"><a href="index.html">1522高端地板</a></li>
                <li>|</li>
                <li><a href="产品中心.html">产品中心</a></li>
                <li>|</li>
                <li><a href="品牌能量.html">品牌能量</a></li>
                <li>|</li>
                <li><a href="服务体系.html">服务体系</a></li>
                <li>|</li>
                <li><a href="伙伴加盟.html">伙伴加盟</a></li>
                <li>|</li>
                <li><a href="关于圣和.html">关于圣和</a></li>
            </ul>
            <div class="search fr"><img src="img/head_search.png" alt=""/></div>
        </div>
    </div>
</div>
<!--head-end-->
<!--search-start-->
<div class="hserch">
    <a href="#" class="img"><img src="img/logo_withe.png" alt=""/></a>
    <i>close</i>
    <div class="box">
        <form>
            <div class="inp">
                <label class="float">Search...</label>
                <input type="text" name="key" class="inptet">
            </div>

            <input type="submit" value=" " class="sub">
        </form>
    </div>
</div>
<!--banner-start-->
<div class="swiper-container" id="indexSwiper">
    <div class="swiper-wrapper">
        <div class="swiper-slide"><img src="img/banner_01.jpg" alt=""/></div>
        <div class="swiper-slide"><img src="img/banner_01.jpg" alt=""/></div>
    </div>
    <!-- Add Arrows -->
    <div class="swiper-button-next swiper-button-white fadeInRight"></div>
    <div class="swiper-button-prev swiper-button-white fadeInLeft"></div>
</div>
<!--banner-end-->
<!--introduce-start-->
<div class="introduceBox">
    <div class="w-1200 clearfix">
        <div class="introduce_img fl">
            <img src="img/introduce_img.jpg" alt=""/>
            <div class="biankuang biankuang_1"></div>
            <div class="biankuang biankuang_2"></div>
            <div class="biankuang biankuang_3"></div>
            <div class="biankuang biankuang_4"></div>
        </div>

        <div class="introduce_txt fr wow fadeInRight" data-wow-duration="500ms">
            <img class="title" src="img/introduce_title.png" alt=""/>
            <h4>实木地暖地板 / <strong>大知识</strong></h4>
            <p>实木地暖地板是指不改变实木地板自然属性的基础上能直接</p>
            <p>用于地采暖（地暖）环境的实木地板</p>
            <p>实木地暖地板是利用纯原木加工制成的适用于地板环境下的环保地板</p>
            <p>从不环保且甲醛超标的符合地暖地板</p>
            <p>到甲醛释放量低的品质复合地暖地板</p>
            <p>再到今天引领健康生活先锋的实木地暖地板</p>
            <p>真正做到为老人和小孩的居住环境提供了适合身心健康要求的保障</p>
        </div>
    </div>
</div>
<!--introduce-end-->
<!--details-start-->
<div class="detailsBox ph-1200">
    <div class="w-1200">
        <ul class="detailsImg clearfix">
            <li class="wow fadeInLeft" data-wow-duration="500ms" data-wow-delay="250ms">
                <a href="http://116.62.134.12/index/sevenDesign.html?id=5"><div><img src="img/details_01.jpg" alt=""/></div></a>
            </li>
            <li class="wow fadeInLeft" data-wow-duration="500ms" data-wow-delay="250ms">
                <a href="http://116.62.134.12/index/sevenDesign.html?id=6"><div><img src="img/details_02.jpg" alt=""/></div></a>
            </li>
            <li class="wow fadeInLeft" data-wow-duration="500ms" data-wow-delay="250ms">
                <a href="http://116.62.134.12/index/sevenDesign.html?id=7"><div><img src="img/details_03.jpg" alt=""/></div></a>
            </li>
            <li class="wow fadeInUp" data-wow-duration="500ms" data-wow-delay="250ms">
                <a href="http://116.62.134.12/index/sevenDesign.html?id=8"><div><img src="img/details_04.jpg" alt=""/></div></a>
            </li>
            <li class="wow fadeInRight" data-wow-duration="500ms" data-wow-delay="250ms">
                <a href="http://116.62.134.12/index/sevenDesign.html?id=9"><div><img src="img/details_05.jpg" alt=""/></div></a>
            </li>
            <li class="wow fadeInRight" data-wow-duration="500ms" data-wow-delay="250ms">
                <a href="http://116.62.134.12/index/sevenDesign.html?id=10"><div><img src="img/details_06.jpg" alt=""/></div></a>
            </li>
            <li class="wow fadeInRight" data-wow-duration="500ms" data-wow-delay="250ms">
                <a href="http://116.62.134.12/index/sevenDesign.html?id=11"><div><img src="img/details_07.jpg" alt=""/></div></a>
            </li>
        </ul>
    </div>
    <div class="lineBox">
        <div class="w-1200">
            <ul class="point">
                <li>
                    <i></i>
                    <p>严</p>
                </li>
                <li>
                    <i></i>
                    <p>选</p>
                </li>
                <li>
                    <i></i>
                    <p>养</p>
                </li>
                <li>
                    <i></i>
                    <p>零</p>
                </li>
                <li>
                    <i></i>
                    <p>漆</p>
                </li>
                <li>
                    <i></i>
                    <p>锁</p>
                </li>
                <li>
                    <i></i>
                    <p>铺</p>
                </li>
            </ul>
        </div>
    </div>
</div>
<!--details-end-->
<!--service-start-->
<div class="serviceBox">
    <div class="w-1200">
        <div class="title wow fadeInLeft" data-wow-duration="500ms" data-wow-delay="250ms">
            <img src="img/service_title.png" alt=""/>
            <span>服务体系</span>
        </div>
        <div class="service_txt">
            <div class="wow fadeIn" data-wow-duration="500ms" data-wow-delay="250ms"></div>
        </div>
    </div>
</div>
<!--service-end-->
<!--case-start-->
<div class="caseBox ph-1200">
    <div class="w-1200">
        <ul class="clearfix">
            <li>
              <div class="wow fadeInUp" data-wow-duration="500ms">
                  <h4>&nbsp;&nbsp;1522高端地暖<br/>&nbsp;实木地板</h4>
                  <p>1522 high-end floor heating</p>
              </div>
            </li>
            <li>
                <div class="wow fadeInUp" data-wow-duration="500ms" data-wow-delay="250ms">
                    <h4>&nbsp;&nbsp;地暖<br/>&nbsp;实木地板</h4>
                    <p>Warm hardwood floors</p>
                </div>
            </li>
            <li>
                <div class="wow fadeInUp" data-wow-duration="500ms" data-wow-delay="250ms">
                    <h4>&nbsp;&nbsp;客户实景<br/>&nbsp;铺装案例</h4>
                    <p>Customer real scene shop case</p>
                </div>
            </li>
        </ul>

    </div>
</div>
<!--case-end-->
<!---news-start-->
<div class="newsBox">
    <div class="w-1200">
        <div class="title wow fadeInLeft" data-wow-duration="500ms">
            <img src="img/news_title.png" alt=""/>
            <span>新闻中心</span>
        </div>
        <div class="newsList clearfix wow fadeInUp"  data-wow-duration="500ms" data-wow-delay="250ms">

        </div>
    </div>
</div>
<!---news-end-->
<!--join-start-->
<div class="joinBox ph-1200">
    <div class="w-1200">
        <div class="wow fadeInUp"  data-wow-duration="500ms" data-wow-delay="250ms">
            <div class="title"><img src="img/join_title.png" alt=""/></div>
            <h4>伙伴加盟</h4>
        </div>
        <div class="wow fadeInUp"  data-wow-duration="500ms" data-wow-delay="250ms">
            <div><img class="join_txt" src="img/join_txt.png" alt=""/></div>
            <a href="#" class="joinBtn">加入我们</a>
        </div>


    </div>
</div>
<!--join-end-->
<!--ChainStore-start-->
<div class="chainStoreBox">
    <div class="w-1200">
        <div class="title wow fadeInLeft" data-wow-duration="500ms">
            <img src="img/chainStore_title.png" alt=""/>
            <span>全国连锁加盟店<i></i></span>
            <span class="small">红星·美凯龙&nbsp;&nbsp;居然之家&nbsp;&nbsp;旗舰店</span>
        </div>
        <ul class="light clearfix wow fadeInUp"  data-wow-duration="500ms" data-wow-delay="250ms">
            <li><img src="img/chainStore_01.png" alt=""/></li>
            <li><img src="img/chainStore_02.jpg" alt=""/></li>
            <li><img src="img/chainStore_03.png" alt=""/></li>
            <li><img src="img/chainStore_04.png" alt=""/></li>
            <li><img src="img/chainStore_05.png" alt=""/></li>
            <li><img src="img/chainStore_06.png" alt=""/></li>
            <li><img src="img/chainStore_07.png" alt=""/></li>
            <li><img src="img/chainStore_08.jpg" alt=""/></li>
        </ul>
    </div>
</div>
<!--foot-start-->
<div class="footBox ph-1200">
    <div class="w-1200 clearfix">
        <div class="left fl wow fadeInLeft" data-wow-duration="500ms" data-wow-delay="250ms">
            <ul class="footNav">
                <li><a href="#">1522高端地板</a></li>
                <li><a href="#">产品中心</a></li>
                <li><a href="#">品牌能量</a></li>
                <li><a href="#">服务体系</a></li>
                <li><a href="#">伙伴加盟</a></li>
                <li><a href="#">关于圣和</a></li>
                <li><a href="#">经销商窗口</a></li>
                <li><a href="#">用户产品查询</a></li>
            </ul>
        </div>
        <div class="center fl wow fadeInUp" data-wow-duration="500ms" data-wow-delay="250ms">
            <img src="img/foot_logo.png" alt=""/>
        </div>
        <div class="right fl wow fadeInRight" data-wow-duration="500ms" data-wow-delay="250ms">
            <img src="img/foot_code.png" alt=""/>
            <h4>400-886-6751</h4>
            <p>WWW.SORHEFLOOR.COM</p>
        </div>
    </div>
</div>
<!--foot-end-->
<!-- Main jQuery -->
<script src="js/jquery-2.1.4.min.js"></script>
<!-- Slitslider -->
<script src="js/swiper-3.2.7.min.js"></script>
<!-- Parallax -->
<script src="js/jquery.parallax-1.1.3.js"></script>
<!-- Custom Scrollbar -->
<script src="js/jquery.nicescroll.min.js"></script>
<!--wow.min Script-->
<script src="js/wow.min.js"></script>
<!--main js-->
<script src="js/main.js"></script>
<script>
    $(function() {
        var pageNo = 1;
        //Json
        bannerJson();
        newsJson(pageNo);
        serviceJson();
        //banner
        var swiper = new Swiper('#indexSwiper', {
            autoplay: 3000,
            loop : true,
            prevButton:'.swiper-button-prev',
            nextButton:'.swiper-button-next'
        });
        if(swiper.slides.length == 1){
            swiper.lockSwipes();
        }
        //上下按钮
        $("#indexSwiper").hover(function(){
            $(".swiper-button-white").fadeToggle();
        });
        //七大特点详情
        $(".detailsImg li").hover(function (){
            var nub = $(this).index();
            $(this).parent().parent().siblings().find("ul.point li").eq(nub).addClass("act")
        },function (){
            var nub = $(this).index();
            $(this).parent().parent().siblings().find("ul.point li").eq(nub).removeClass("act")
        });

        //介绍
        $('.introduceBox').hover(
                function () {
                    $(this).find('.introduce_img .biankuang_2').stop(true).delay(300).animate({
                        width:'542px'
                    },300);
                    $(this).find('.introduce_img .biankuang_3').stop(true).animate({
                        height:'542px'
                    },300);
                },
                function () {
                    $(this).find('.introduce_img .biankuang_2').stop(true).animate({
                        width:'0px'
                    },100);
                    $(this).find('.introduce_img .biankuang_3').stop(true).delay(100).animate({
                        height:'0px'
                    },100);
                }
        );
        //连锁店
        $("ul.light li").hover(function(){
            $(this).attr("class","on").siblings().attr("class","off")
        },function(){
            $(this).parent().children().attr("class","on");
        });
    });
    //bannerJson
    function bannerJson(){
        $.ajax({
            url: 'http://116.62.134.12/index/banner.html',
            dataType:'jsonp',
//            jsonp:"callback",
            processData: false,
            type:'get',
            success: function (data) {
                var bannerDatas = data.ret;
                var bannerHtml = '';
                for(var i =0;i<bannerDatas.length;i++){
                    bannerHtml+='<div class="swiper-slide"><img src="'+bannerDatas[i].image+'" id="'+bannerDatas[i].id+'" alt=""/></div>';
                }
                $("#indexSwiper .swiper-wrapper").html(bannerHtml);

            },
            error: function () {
                console.log(data.desc)
            }
        });
    };
    //newsJson
    function newsJson(pageNo){
        $.ajax({
            url: 'http://116.62.134.12/front/news.html',
            data: {"pageNo":pageNo, "pageSize":4},
            dataType:'jsonp',
//            jsonp:"callback",
            processData: false,
            type:'get',
            success: function (data) {
                if(data.code == 0){
                    var newsDatas = data.data;
                    var newsHtml= '';
                    newsHtml+='<div class="left fl"><div class="news"><div class="news_img"><img src="'+newsDatas[0].image+'" alt=""/></div><div class="news_txt"><div class="time">'+newsDatas[0].created+'</div><h4>'+newsDatas[0].title+'</h4><p>'+newsDatas[0].subTitle+'</p></div></div></div>';
                    newsHtml+='<div class="right fr">';
                    for(var i =1;i<newsDatas.length;i++){
                        newsHtml+='<div class="news clearfix">';
                        newsHtml+='<div class="news_img fl"><img src="'+newsDatas[i].image+'" alt=""/></div>';
                        newsHtml+='<div class="news_txt fl">';
                        newsHtml+=' <h4>'+newsDatas[i].title+'</h4><p>'+newsDatas[i].subTitle+'</p><div class="time">'+newsDatas[i].created+'</div>';
                        newsHtml+='</div>';
                        newsHtml+='</div>';
                    }
                    newsHtml+='</div>';
                    $(".newsList").html(newsHtml);
                }
            },
            error: function () {

            }
        });
    };
    //serviceJson
    function serviceJson(){
        $.ajax({
            url: 'http://116.62.134.12/front/service.html',
            dataType:'jsonp',
//            jsonp:"callback",
            processData: false,
            type:'get',
            success: function (data) {
                console.log(data);
                var serviceTxt = data.ret.content;
                var serviceTxtHtml = '';
                serviceTxtHtml +='<p>'+serviceTxt+'</p>';
                $(".service_txt div").html(serviceTxtHtml);
            },
            error: function () {
                console.log(data.desc)
            }
        });
    };

</script>
</body>
</html>